// import {
//   login,
//   getPermission,
//   getUserInfo,
//   LogOut
// } from '@/api/user'
import Cookies from 'js-cookie'

export default {
  state: {
    userId: '',
    userName: '',
    access: [],
    userInfo: {},
    token: '',
    avatarImgPath: '',
    Information: '',
    identities: ''
  },
  mutations: {
    setInformation (state, data) {
      state.Information = data
    },
    setIdentities (state, identities) {
      state.identities = identities
    },
    setUserId (state, id) {
      state.userId = id
    },
    setUserName (state, name) {
      state.userName = name
    },
    setAccess (state, access) {
      state.access = access
    },
    setToken (state, token) {
      state.token = token
    },
    setAvatar (state, avatarPath) {
      state.avatarImgPath = avatarPath
    },
    setUserInfo (state, userInfo) {
      state.userInfo = userInfo
    }

  },
  getters: {},
  actions: {}
}
